import Vue from 'vue'
import VueRouter from 'vue-router'
import Login from '../components/Login.vue'
import index from'../components/index.vue'
import view from'../components/view.vue'
import share from'../components/share.vue'
import vipview from'../components/vipview.vue'
import alipay from '../components/alipay.vue'
import watchhistory from '../components/watchHistory.vue'
Vue.use(VueRouter)
const routes = [{
    path: '/',
    redirect: '/login'
  },
  {
    path:'/vipview',
    component:vipview
  },
  {
    path: '/login',
    component: Login
  },
  {
    path: '/index',
    component: index,

  },
  {
    path:'/view',
    component:view
  },
  {
    path:'/share',
    component:share
  },
  {
    path:'/alipay',
    component:alipay
  },
  {
    path:'/history',
    component:watchhistory
  }


]

const router = new VueRouter({
  routes,

})


export default router
